package com.xin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xin.model.Building;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author 夜天
 * @Date 2022/2/27 15:10
 * @Version 1.0.0
 * @description：
 */
@Component("buildingDao")
public interface BuildingMapper extends BaseMapper<Building> {

    List<Building> queryBuildAll(@Param("numbers") String numbers);

    /**
     * 通过house中building_id查找building
     */
    Building queryBuildById(@Param("buildId") Integer buildId);
}
